#include <stdio.h>

int main(int argc,char *argv[])
{
	int a;
	scanf("%d",&a);
	
	switch(a)
	{
		case 0 ... 100:
		printf("small!\n");
		break;
		
		case 101 ... 200:
		printf("middle!\n");
		break;
		
		case 201 ... 300:
		printf("large!\n");
		break;
		
		default:
		printf("unknown!\n");
		break;
		
	}
	
	return 0;
}